﻿using System;
using System.Xml.Serialization;

namespace DOJ.LEISP.LEXS.Utilities
{
	/// <summary>
	/// Utility class for XML Namespaces
	/// </summary>
    internal class XmlNamespaceUtility
    {

		 /// <summary>
		 /// Initalizes XML namespaces with their common prefixes for the LEXS schemas.
		 /// </summary>
		 /// <returns>An instance of XmlSerializerNamespaces containing all of the namespaces used by LEXS</returns>
        protected internal static XmlSerializerNamespaces InitializeLexsNamespaces()
        {
            XmlSerializerNamespaces xmlns = new XmlSerializerNamespaces();
            xmlns.Add("lexssr", "http://usdoj.gov/leisp/lexs/searchretrieve/3.1");
            xmlns.Add("nc", "http://niem.gov/niem/niem-core/2.0");
            xmlns.Add("i", "http://niem.gov/niem/appinfo/2.0");
            xmlns.Add("j", "http://niem.gov/niem/domains/jxdm/4.0");
            xmlns.Add("lexs", "http://usdoj.gov/leisp/lexs/3.1");
            xmlns.Add("lexscodes", "http://usdoj.gov/leisp/lexs/codes/3.1");
            xmlns.Add("lexsdigest", "http://usdoj.gov/leisp/lexs/digest/3.1");
            xmlns.Add("niem-xsd", "http://niem.gov/niem/proxy/xsd/2.0");
            xmlns.Add("s", "http://niem.gov/niem/structures/2.0");
            return xmlns;
        }

    }
}
